<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>箭头函数</title>
</head>

<body>
    <script>
        var age = 1000
        var obj = {
            age: 20,
            say: () => {
                console.log(age);
            }
        }
        obj.say()
    </script>
</body>

</html>